package c.e.a.b.f.b;

import android.content.SharedPreferences.Editor;
import b.i.b.f;

/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public final class f4 {
    public final String a;
    public final boolean b;
    public boolean c;
    public boolean d;
    public final /* synthetic */ d4 e;

    public f4(d4 d4Var, String str, boolean z) {
        this.e = d4Var;
        f.N(str);
        this.a = str;
        this.b = z;
    }

    public final void a(boolean z) {
        Editor edit = this.e.w().edit();
        edit.putBoolean(this.a, z);
        edit.apply();
        this.d = z;
    }

    public final boolean b() {
        if (!this.c) {
            this.c = true;
            this.d = this.e.w().getBoolean(this.a, this.b);
        }
        return this.d;
    }
}
